package com.caipiao.mapper;



import com.caipiao.pojo.SAddress;

import java.util.List;
import java.util.Map;

public interface SAddressMapper {
    //收货地址列表
    List<SAddress> selectAddressByUserId(Map<String, Object> map);
    //添加收获地址
    void insertAddress(SAddress sAddress);
    //修改收获地址
    void updateAddress(SAddress sAddress);
    //删除收获地址
    void deleteAddress(Integer id);
    //修改全部地址为非默认
    void updateAddressAll(String userId);

    SAddress selectAddress(Integer address_id);
}
